$(document).ready(function(){
	//日期下拉框
	var dateSelect = new Helper.control.SelectDate({
		renderId : "dateSelect_div",
		spanMonth : 12,
		valueFormat : "yyyyMM",
		lableFormat : "yyyy年MM月",
		onChange : function(data){
			remotePayDetailsQuery.addParameters("time", data.value);
			remotePayDetailsQuery.send();
		}
	});
	/**
	 * 查询充值记录数据
	 */
	var remotePayDetailsQuery = new Helper.PageBar({
		renderId:"loaddiv",
		pageBarId:"pagebur_div",
		pageSize : 15,
		url:Helper.basePath+"/memberCenter/member_operate/userPayDetail.htm",
		params : {time : dateSelect.getValue()},
		onSuccess:function(){
			$("#showDate_span").html(dateSelect.getLabel());
			dateSelect.flush();
		},
		onComplete:function(){
			//如果总条数小于每页显示条数，则移除分页显示
			if(this.totalSize <= this.pageSize)
			{
				$("#" + this.pageBarId).empty();
			}
		}
	});
	remotePayDetailsQuery.send();
});